﻿@model AppSummaryPlus
@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1>Example5 - Using Azure Active Directory</h1>
</div>
<h4>Application summary</h4>
<ul>
    <li><strong>@nameof(AppSummaryPlus.Application)</strong>:&nbsp;@Model.Application</li>
    <li><strong>@nameof(AppSummaryPlus.AuthorizationProvider)</strong>:&nbsp;@Model.AuthorizationProvider</li>
    <li><strong>@nameof(AppSummaryPlus.CookieOrToken)</strong>:&nbsp;@Model.CookieOrToken</li>
    <li>
        <strong>@nameof(AppSummaryPlus.Databases)</strong>:&nbsp;
        <ul>
            @foreach (var database in Model.Databases)
            {
                <li>@database</li>
            }
        </ul>
    </li>
    @if (@Model.Note != null)
    {
        <li><strong>@nameof(AppSummaryPlus.Note)</strong>:&nbsp;@Model.Note</li>
    }
</ul>


<h1 class=text-primary>@Model.WhatTypeOfAuthUser</h1>

<h3>How to use use this application</h3>
<p>
    <ol>
        <li>
            Log in using one of these two users.
            <ul>
                <li>
                    <strong>Test@authpermissions.onmicrosoft.com</strong>, password <strong>Luna0017</strong>
                    <br />
                    This use has the Basic Role
                </li>
                <li>
                    <strong>Admin@authpermissions.onmicrosoft.com</strong>, password <strong>YourIn7189</strong>
                    <br />
                    This use has the Admin Role
                </li>
            </ul>
        </li>
        <li>When log in you can see your claims, permissions and other user/role info via the "User Admin" menu button.</li>
    </ol>
</p>

